package cn.hinglo.gameclaw.user.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @createTime: 2018/1/3
 * @author: HingLo
 * @description: H5 界面管理
 */
@Data
@Table(name = "html")
@Accessors(chain = true)
public class Html {

    @Id
    private Long id;
    /**
     * h5名称
     */
    @Pattern(regexp = "^[a-zA-Z0-9]{3,10}$", message = "名称不符合规则")
    private String name;

    @Size(min = 5, message = "描述不能少于5个字符")
    private String depict;

    /**
     * 访问连接
     */
    private String url;

    /**
     * html 类型，1:邀请好友
     */
    private Integer type;
    private Date date;

}
